package com.utils.thread;

/**
 * @Desc：
 * 
 * @Title：TestThread
 * @author: zhaoyangyang
 * @version: 1.0
 * @date: 2017年4月20日 下午8:42:27
 */
public class ThreadTest extends Thread {

	public ThreadTest(String name) {
		super(name);
	}

	public void run() {
		for (int i = 0; i < 5; i++) {
			System.out.println(this.getName() + " :" + i);
		}
	}

	public static void main(String[] args) {
		Thread t1 = new ThreadTest("阿三");
		Thread t2 = new ThreadTest("李四");
		t1.start();
		t2.start();
	}
}
